#include "client.h"
#include <iostream>
#include <thread>

int main() {
    TcpClient client("127.0.0.1", 8080);
    client.init();
    client.sendingMultiSmallMsg();
    client.sendingOneBigMsg();
    client.sendingMix();

    std::cout << "\nAll messages sent. Waiting briefly before closing..." << std::endl;
    std::this_thread::sleep_for(std::chrono::seconds(2)); // Give server time to receive

    client.close();
    return 0;
}